package com.xii.eduVod;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)  //因为oss默认配置数据源  exclude是默认不加载数据库 不然会报错
@ComponentScan(basePackages = {"com.xii"})   //加载的配置类  主要是对位于swagger的加载 扫描com.xii下的包 全局  //配置宝扫描规则   自动整合到swagger
@EnableDiscoveryClient                  //开启nacos的服务注册
public class VodApplication {
    public static void main(String[] args){
        SpringApplication.run(VodApplication.class,args);
    }
}
